<?php include_once './application/views/sys_admin/common/header.php';  ?>
<!-- admin_main -->
<div class=" definewidth m20">
	<h3><?php echo $forum['subject'];?></h3>
	<table class="table table-bordered table-hover m10">
		 <tr>
	        <td class="tableleft">主题 </td>
	        <td><?php echo $forum_theme[$forum['tid']];?>
			</td>
			<td class="tableleft">发帖人 </td>
	        <td><?php echo $forum['author'];?>
			</td>
			<td class="tableleft">帖子状态 </td>
	        <td><?php echo $forum_status[$forum['fstatus']];?>
			</td>
			<td class="tableleft">发贴时间 </td>
	        <td><?php echo date('Y-m-d H:i:s',$forum['add_time']);?>
			</td>
	   	</tr>
	   	<tr>
	        <td class="tableleft">帖子标签 </td>
	        <td colspan="12" ><?php echo $forum['tags'];?></td>
	   	</tr>
	   	<tr>
	        <td class="tableleft">帖子内容</td>
	        <td colspan="12" ><?php echo $forum['content'];?></td>
	   	</tr>
 	</table>
 	<h4>帖子评论</h4>
 	<table class="table table-bordered table-hover  m10">
			 <thead>
			    <tr>
			       <th >回帖用户</th>
                   <th >回帖内容</th>
                   <th >回帖时间</th>
					<th>操作</th>
			    </tr>
			   </thead>
			 <td> <?php echo 1;?></td>
				<td><?php echo  number_format($sum_money,2);?></td>
				<td><?php echo  number_format($count_user);?></td>
				<td><?php echo  number_format($avg_money,2);?></td>
				<!--  <td</td> -->
			  </tr>
			  	<tr>
			  	<td colspan="12"  class="invbd_page"><?php echo $this->pagination->create_links();?></td>
			  	</tr>
		</table>
</div>
<div id="dialog" style="display:none">
	<div id="view_response"></div>
</div>
<script type="text/javascript">
function load_forum(id,pg){
	$.ajax({ 
		url: '/sys_admin/forum/view/'+id,
		data: {from: 'ajax', pg: pg,id:id},
		type:'GET',
		success: function(txt){
			$("#forum_lists").html(txt);
		}
	});
}
</script>
